package com.dormitoryAdministratorSystem.service.user.impl;

import com.dormitoryAdministratorSystem.dao.user.impl.UserDaoImpl;
import com.dormitoryAdministratorSystem.entity.user.UserBean;
import com.dormitoryAdministratorSystem.service.user.IUserService;

public class UserServiceImpl implements IUserService {
    UserDaoImpl udi = new UserDaoImpl();

    @Override
    public boolean login(String username, String password) {
        UserBean user = udi.getUser(username,password);

        if(user == null)
            return false;
        else
            return true;
    }
}
